<div class="trace_uri">KARTU RENCANA STUDI &raquo; <span class="current_page">LIHAT KARTU RENCANA STUDI</span></div>
<div id="content">

<?php if($getDataKrs): ?>
<div id="top_info_1">
<div class="info_left lfloat">
  <b>KARTU RENCANA STUDI</b>: Semester <?php echo ucwords(strtolower($info_semester)).' '.$info_tahun ?>
</div>
<div class="info_right lfloat">
  <img src="<?php echo base_url().'images/cetak.png' ?>" align=top /> <a title="Klik untuk mencetak KRS" href="#">CETAK KRS</a>
</div>
</div>
<?php endif; ?>

<div class="text">
<p>
 <?php if($getDataKrs): ?>
 <?php foreach($getDataMhs as $mhsValue): ?>
 <div class="data_mhs" align="center">
     <table class="uiTableList" cellpadding="5" cellspacing="0" border="0">
     <form method="post" action="<?php echo base_url().'sima/proses-approval.html'?>">  
     <tbody>
       <tr align="left">
         <td width="75"><b>Nama</b></td>
         <td width="14">:</td>
         <td width="361" ><?php echo $mhsValue->NAMA ?></td>
       </tr>
       <tr align="left">
		  <td><b>NIM</b></td>
          <td>:</td>
          <td><input name="nim" type="hidden" value="<?php echo $mhsValue->NIM ?>" /><?php echo $mhsValue->NIM ?></td>
	   </tr>
	   <tr>
		  <td><b>IPS</b></td>
	   	  <td>:</td>
	      <td><?php if($getDataKhs) echo $this->gpa_com->ips($getDataKhs,'NILAI','SKS'); else echo '0.00'; ?></td>
	   </tr>
	   <tr>
		  <td><b>IPK</b></td>
		  <td>:</td>
		  <td><?php if($getDataIpk) echo $this->gpa_com->ipk($getDataIpk,'NILAI','SKS'); else echo '0.00'; ?></td>
	   </tr>
	   <tr>
		  <td><b>SKS Maksimum</b></td>
		  <td>:</td>
		  <td><?php echo $this->gpa_com->maxSksDiambil($getDataKhs,'NILAI','SKS'); ?></td>
	   </tr>
     </tbody>

      </table>
 </div>
 <?php break; ?>
 <?php endforeach; ?>
 <br />
 <table border="1" cellpadding="3" cellspacing="0" style="border-collapse: collapse" bordercolor="#CCCCCC" align="center">
			<tr class="font_white" bgcolor="#000000" align="center">
                <th width="30" height="23">No.</th>
                <th width="70">Kode MK</th>
                <th width="310">Nama MK</th>
                <th width="40">SKS</th>
                <th width="60">Kelas</th>
            </tr>
            <?php $total_sks = 0; ?>
            <?php $seq_number = 1; ?>
            <?php foreach($getDataKrs as $krs): ?>
            <tr align="center">
              <td align="right"><?php echo $seq_number; ?></td>
              <td><?php echo strtoupper($krs->KODE_MK); ?></td>
              <td align="left"><?php echo ucwords(strtolower($krs->NAMA_MK)); ?></td>
              <td><?php echo $krs->SKS; ?></td>
              <td><?php echo $krs->KELAS; ?></td>
            </tr>
            <?php $total_sks = $total_sks + $krs->SKS; ?>
            <?php $seq_number++; ?>
            <?php endforeach; ?>

            <tr bgcolor="#FFFFFF" align="center">
              <td></td>
              <td></td>
              <td align="right"><b>Jumlah SKS</b></td>
              <td><?php echo $total_sks; ?></td>
              <td></td>
            </tr>
            </table>

<?php else: ?>
<div align="center">
  <div style="width:500px">
      <div id="p_messages_error">
        Data tidak tersedia. Mungkin disebabkan:
        <br />
        <ol>
        <li>Belum ada data KRS pada Semester <?php echo $info_semester; ?> <?php echo $info_tahun ?> </li>
		<li>KRS pada Semester <?php echo $info_semester; ?> <?php echo $info_tahun ?> telah divalidasi </li>
        </ol>
      </div>
   </div>
 </div>
<?php endif; ?>

</p>

<br /><br />
<div align="center">
<?php if($getDataKrs): ?><input title="Klik untuk menyetujui" name="Submit" type="submit" value="Setuju" /> | <?php endif; ?>
<img src="<?php echo base_url().'images/back.png' ?>" align=top /> <a title="Klik untuk kembali" href="<?php echo base_url().'sima/approval.html' ?>">KEMBALI</a>
</div>
</form>
<div class="separator_closer">&nbsp;</div>

</div>

</div>